#ifndef COLORPICKER_H
#define COLORPICKER_H

#include <QWidget>
#include <QLabel>
#include <QPixmap>
#include <QSlider>
#include <QGridLayout>
#include <QPushButton>
#include <QDebug>

class ColorPicker : public QWidget
{
	Q_OBJECT

public:
	ColorPicker(QWidget *parent = 0);
	~ColorPicker();

private:

	QSlider* red;
	QSlider* green;
	QSlider* blue;

	QLabel* display;
	QPixmap* pixmap;

	QColor current;
	QPushButton* choose;
	QPushButton* aggregate;
	QPushButton* undo;

private slots:

	void updateColor();
	void finalize();
	void cancel();
	void merge();

signals:
 
	void sendColor(QColor);
	void mergeCluster();
	void removeCluster();
	void done();
};

#endif // COLORPICKER_H
